[ACM] Update the xensec_ezpolicy ACM policy generation tool so
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 15 Feb 2007 14:20:05 +0000 (14:20 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 15 Feb 2007 14:20:05 +0000 (14:20 +0000)
that it works with wxPython under Python 2.5.
Signed-off by: Reiner Sailer <sailer@us.ibm.com>

tools/security/xensec_ezpolicy

index 34af952bbe926528b91548f2022ecfe12bb3a277..eaf5f91340af6cb215ccbc47ed8fe5fc24f7d2ae 100644 (file)
@@ -45,9 +45,6 @@ class orgTreeCtrl(wx.TreeCtrl):
                              validator, name)
         self.parent = parent
         orgs_root = self.AddRoot(text="Organization / Department")
-        rootfont = wx.Font(pointSize=12, family=wx.FONTFAMILY_DEFAULT,
-                          style=wx.FONTSTYLE_NORMAL, weight=wx.FONTWEIGHT_LIGHT)
-        self.SetItemFont(orgs_root, rootfont)
         self.SetItemBackgroundColour(orgs_root, wx.LIGHT_GREY)
 
 
@@ -276,6 +273,7 @@ class ConsPanel(wx.Panel):
     def RefreshMe(self):
         size=self.parent.GetSize()
         self.parent.Fit()
+        self.parent.SetSize(size + (1,1))
         self.parent.SetSize(size)
 
 
@@ -880,7 +878,7 @@ class ezFrame(wx.Frame):
 
     def _OpenSpec(self, event):
         filediag = wx.FileDialog(self, defaultFile="myspec.wld",
-                                wildcard="*.wld", style=wx.OPEN | wx.OVERWRITE_PROMPT,
+                                wildcard="*.wld", style=wx.OPEN,
                                 message="Select Workload Definition file name")
         ret = filediag.ShowModal()
         name = filediag.GetPath()